import request from "@/plugins/axios";
//  商机列表
export function listApi(data) {
    return request({
        url: "/crm/opportunity/index",
        method: "post",
        data,
    });
}
//  添加/修改
export function addApi(data) {
    return request({
        url: "/crm/opportunity/save",
        method: "post",
        data,
    });
}
// 删除
export function delApi(data) {
    return request({
        url: "/crm/opportunity/delete",
        method: "post",
        data,
    });
}
// 设置当前进度 
export function selStageApi(data) {
    return request({
        url: "/crm/opportunity/selStage",
        method: "post",
        data,
    });
}

// 设置失败或赢单
export function finishApi(data) {
    return request({
        url: "/crm/opportunity/finish",
        method: "post",
        data,
    });
}
